package com.zijin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zijin.entity.Skype264Account;
import com.zijin.mapper.Skype264AccountMapper;
import com.zijin.service.Skype264AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * skype264人账户信息Service实现
 * */
@Service
public class Skype264AccountServiceImpl extends ServiceImpl<Skype264AccountMapper, Skype264Account>  implements Skype264AccountService {

    @Autowired
    private Skype264AccountMapper skype264AccountMapper;
    /**
     * 根据卡号查找账户信息
     * */
    @Override
    public List<Skype264Account> findAccountByBankNo(String tradeBankNo) {
        LambdaQueryWrapper<Skype264Account> queryWrapper = Wrappers.<Skype264Account>lambdaQuery();
        queryWrapper.eq(Skype264Account::getTradeBankNo, tradeBankNo);
        List<Skype264Account> skype264Account = skype264AccountMapper.selectList(queryWrapper);
        return skype264Account;
    }
}
